<template>
<!--项目结项-->
  <div class="xmjx">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="60px">
      <el-row style="margin-top: 25px">
        <el-col :span="6">
          <el-form-item label="经办人：" label-width="90px">
            <el-input v-model="ruleForm.shenbaoren" placeholder="请输入" suffix-icon="el-icon-user"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="经办日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.riqi"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="经办部门：" label-width="90px">
            <el-input v-model="ruleForm.bumen" placeholder="请输入" suffix-icon="el-icon-c-scale-to-original"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="N：">
            <el-input v-model="ruleForm.N" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="经办单位：" label-width="90px">
          <el-input v-model="ruleForm.danwei" placeholder="请输入" suffix-icon="el-icon-office-building"></el-input>
        </el-form-item>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">基本信息</span>
      </div>
      <el-row style="margin-top: 25px">
        <el-col :span="12">
          <el-form-item label="项目名称：" label-width="90px">
            <el-input v-model="ruleForm.xmmc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="项目负责人：" label-width="100px">
            <el-input v-model="ruleForm.fzr" placeholder="请输入" suffix-icon="el-icon-user"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="结项日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.jxrq"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="开始日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.jhks"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="结束日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.jhwc"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="工期：" label-width="100px">
            <el-input v-model="ruleForm.gongqi" placeholder="请输入">
              <template slot="append">天</template>
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="项目编号：" label-width="90px">
            <el-input v-model="ruleForm.xmbh" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="预期成果：" label-width="90px">
          <el-input v-model="ruleForm.yqcg" placeholder="请输入"></el-input>
        </el-form-item>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="取得成果：" label-width="90px">
            <el-input v-model="ruleForm.qdcg" placeholder="请输入" ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="成果文件：" label-width="100px">
            <el-input v-model="ruleForm.cgwj" placeholder="请输入" suffix-icon="el-icon-paperclip"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="项目总结：" label-width="90px">
          <el-input v-model="ruleForm.xmzj" placeholder="请输入"></el-input>
        </el-form-item>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">评审意见</span>
      </div>
      <el-row style="margin-top: 25px">
        <el-input
          type="textarea"
          :rows="2"
          placeholder="请输入"
          v-model="ruleForm.approval">
        </el-input>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "xmjx",
  data(){
    return{
      ruleForm:{},
      rules:{},
    }
  },
  props:{
    selectRow:{
      type: Object,
      default: ()=>{}
    }
  },
  watch:{
    selectRow:{
      handler(val) {
        if(this.selectRow){
          this.ruleForm.xmmc = this.selectRow.projectName
        }
      },
      immediate: true,
    }
  }
}
</script>

<style scoped lang="scss">
.xmjx ::v-deep {
  .el-input__inner {
    border: 0 !important;
    border-bottom: 1px solid #DCDFE6 !important;
    border-radius: 0 !important;
    padding-right: 20px !important;
  }
}
.form-small-title{
  border-bottom: solid 2px #C0C4CC;
  padding-bottom: 10px;
}
.form-divider{
  width: 5px;
  height: 26px;
  background: rgb(66, 185, 131);
}
.form-small-font{
  font-size: 19px;
  font-weight: 600;
  color: #303133;
}
</style>
